package com.basic.business.finance.domain;

import com.basic.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import com.basic.common.utils.StringUtils;
import com.basic.common.utils.uuid.ULID;

/**
 * 账单规则对象 t_money_rules
 * 
 * @author zhaoxy_jn@163.com
 * @date 2025-07-07
 */
@Getter
@Setter
@ExcelIgnoreUnannotated
public class TMoneyRules extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 规则平台 */
    @ExcelProperty(value = "规则平台")
    private String rulePlatform;

    /** 业务类型 */
    @ExcelProperty(value = "业务类型")
    private String businessType;

    /** 规则 */
    @ExcelProperty(value = "规则")
    private String rule;

    @ExcelProperty(value = "匹配内容")
    private String matchContent;

    /** 一级分类 */
    @ExcelProperty(value = "一级分类")
    private String classificationOne;

    /** 二级分类 */
    @ExcelProperty(value = "二级分类")
    private String classificationTwo;

    /** 序号 */
    @ExcelProperty(value = "序号")
    private int sort;

    /** 状态 */
    @ExcelProperty(value = "状态")
    private String ruleStatus;

    public void setId(String id) {
        this.id = StringUtils.isNotEmpty(id) ? id : ULID.getId();
    }
}
